package com.tinyseed.emcp.api.basicdata.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/***
 * @ClassName: ProducePollute
 * @Description: TODO
 * @Auther: Harlan.Xiong
 * @Date: 2019-12-1 0:04
 * @version : V1.0
 */
@Data
@Table(name = "tb_produce_pollute")
@Entity()
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProducePollute implements Serializable {

    /**
     * 唯一主键
     */
    @Id
    @SequenceGenerator(name = "tb_produce_pollute_sequence", sequenceName = "tb_produce_pollute_sequence", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "tb_produce_pollute_sequence")
    private Long id;
    /**
     * 产污检测点ID
     */
    @Column(name = "produce_id")
    private Long produceId;
    /**
     * 治污检测点ID
     */
    @Column(name = "pollute_id")
    private Long polluteId;
    /**
     * 备用关系 1：用  2：备
     */
    @Column(name = "relation")
    private String relation;
    /**
     * 创建时间
     */
    @Column(nullable = true)
    private Timestamp createTime;

    /**
     * 创建人
     */
    @Column(nullable = true)
    private String creator;

}
